package com.sqllite.springbootsqlitejdbc.service;


import com.sqllite.springbootsqlitejdbc.bean.CreditRepay60;
import com.sqllite.springbootsqlitejdbc.repository.CreditRepay60Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CreditRepay60Service {
    private final CreditRepay60Repository creditRepay60Repository;

    public CreditRepay60Service(CreditRepay60Repository creditRepay60Repository) {
        this.creditRepay60Repository = creditRepay60Repository;
    }

    public List<CreditRepay60> getAllCreditRepays() {
        return creditRepay60Repository.findAll();
    }
}
